package com.jkoss.wine.shop.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;


/**
 * 
 * 
 * @Author Supreme
 * @Version 1.0, 2018-10-05
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
@TableName("common_type")
public class CommonType extends Model<CommonType> {

    private static final long serialVersionUID = 1L;

    @TableId("common_type_id")
    private String commonTypeId;
    @TableField("shop_id")
    private String shopId;
    @TableField("parent_id")
    private String parentId;
    /**
     * 类型 0容量单位 (如ml ,l等) 1资源分组名称
     */
    @TableField("type_class")
    private Integer typeClass;
    /**
     * 类型名称
     */
    @TableField("type_name")
    private String typeName;
    @TableField("add_time")
    private Date addTime;
    @TableField("operator")
    private String operator;
    @TableField("del")
    private Integer del;


    public String getCommonTypeId() {
        return commonTypeId;
    }

    public void setCommonTypeId(String commonTypeId) {
        this.commonTypeId = commonTypeId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getTypeClass() {
        return typeClass;
    }

    public void setTypeClass(Integer typeClass) {
        this.typeClass = typeClass;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.commonTypeId;
    }

    @Override
    public String toString() {
        return "CommonType{" +
        ", commonTypeId=" + commonTypeId +
        ", shopId=" + shopId +
        ", parentId=" + parentId +
        ", typeClass=" + typeClass +
        ", typeName=" + typeName +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", del=" + del +
        "}";
    }
}
